<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addNew.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <!--  写session保存lid-->
  
  
  <% int lid=Integer.parseInt(request.getParameter("lid").toString());
  request.getSession().setAttribute("lid",lid);
   %>
  
  
  <body>
  <h1>增加新闻</h1>
  <center>
  <form action="sb_saveNew" method="post" target="_parent">
  <table border=1 cellspacing="0">
	<tr><td>新闻标题:</td><td><input type="text" name="news.ntitle"></td></tr>
	<tr><td>新闻内容:</td><td><textarea style="width:200px;height:80px;"  name="news.ncontext"></textarea></td></tr>
<!-- 	<tr><td>新闻发布时间:</td><td><input type="text" name="news.ntime"></td></tr> -->
	<tr><td>新闻来源:</td><td><input type="text" name="news.nsource"></td></tr>
	<tr><td><input type="submit" value="提交"></td></tr>
	</table>
</form></center>
  </body>
</html>
